<?php

/**
 * SocialEngine
 * 
 * @category   Application_Extensions
 * @package
 * @copyright  Copyright 2008-2012 YouNet Developments
 * @author     Anhtv
 */
class Mage_Book_Block_Browse extends Mage_Core_Block_Template
{

    public function getAllBooks()
    {
        $model_book = Mage::getModel('book/book');      // Mage_Book_Model_Book
        
        $collection = $model_book->getCollection()
                ->setOrder('book_id', 'desc');
        
        Mage::getSingleton('adminhtml/session')->addSuccess('Get book data successfully!');
        
        return $collection;
    }
    

}
